<?xml version="1.0" encoding="UTF-8"?>
<!--=======================================================================
/// <remarks>
/// Version:
///		- number:	0.0.3
///		- build:	20060726
///		- status:	live
/// </remarks>
	======================================================================= -->

<!--=======================================================================
	Stylesheet: logs/confirmx
		- contains the templates used for the confirmation emails
	=======================================================================	-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
	<xsl:output method="html"/>

	<xsl:param name="site"/>
	<xsl:param name="name"/>
	<xsl:param name="id"/>
	<xsl:variable name="root">
		<xsl:value-of select="$site"/>
		<xsl:text>default.aspx?link=newsletter_subscriber_validate&amp;name=</xsl:text>
	</xsl:variable>
	
<!--=======================
	Match templates section
	======================= -->
	<xsl:template match="recruit">
		<html>
			<head>
				<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"/>
				<title><xsl:text>EngineX Confirmation: </xsl:text></title>
			</head>
			<body bgcolor="#FFFFFF">
				<!-- CSS goes here in case the /head tags get stripped --> 
				<xsl:call-template name="htmlStyle"/>
				<!-- Sometimes, body tags get stripped. This table is for background color when that happens. --> 
				<table width="100%" bgcolor="#FFFFFF" cellpadding="0" cellspacing="0">
					<tr>
						<td valign="top" align="center">
							<table width="400" bgcolor="#FFFFFF" cellpadding="0" cellspacing="0">
								<xsl:call-template name="mailHead"/>
								<xsl:call-template name="mailBody"/>
								<xsl:call-template name="mailFoot"/>
							</table>
						</td>
					</tr>
				</table>
			</body>
		</html>
	</xsl:template>

<!--=======================
	Named templates section
	======================= -->
	<xsl:template name="htmlStyle">
		<!-- Common? -->
		<style type="text/css">
			<xsl:comment>
			span,p,ul,li,h2,h3,h4{padding:0px;margin:0px;font-family:verdana;font-size:11px;color:#000000;}
			h1{font-family:Arial;color:#6D057A;font-size:18px;margin-top:20px;}
			h2{color:#6D057A;font-size:12px;}
			h3,h4{font-weight:normal;}
			h4{color:#6D057A;margin:30px 0px 20px 0px;}
			a{color:#6D057A;}
			.headerText,.footerText{font-size:9px;}
			p{margin-top:10px;}
			ul{list-style:disc;list-style-position:inside;}
			</xsl:comment>
		</style>
	</xsl:template>
	
	<xsl:template name="mailHead">
		<!-- Common? -->
	</xsl:template>
	
	<xsl:template name="mailBody">
		<tr>
			<!-- content cell -->
			<td valign="top">
				<p>To confirm your subscription, please click the link below</p>
				<p><a>
					<xsl:attribute name="href">
						<xsl:value-of select="$root"/><xsl:value-of select="$name"/>
						<xsl:text>&amp;id=</xsl:text><xsl:value-of select="$id"/>
					</xsl:attribute>
					<xsl:text>Click here to confirm subscription</xsl:text></a></p>
			</td>
		</tr>
	</xsl:template>
	
	<xsl:template name="mailFoot">
		<!-- Common? -->
	</xsl:template>
	
<!--=========================
	Utility templates section
	========================= -->
	
</xsl:stylesheet>
